7b4f92b2d745306ed724e62054b8eaaf15fab629,app/src/main/java/com/njlabs/showjava/utils/Utils.java,Utils,killAllProcessorServices,#Context#,21

Before Change


    public static void killAllProcessorServices(Context context) {

        Intent mServiceIntent = new Intent(context, ProcessService.class);
        mServiceIntent.setAction(Constants.ACTION.STOP_PROCESS);
        context.startService(mServiceIntent);

        ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);

After Change


    public static void killAllProcessorServices(Context context, boolean forNew) {
        Intent mServiceIntent = new Intent(context, ProcessService.class);
        if(forNew){
            mServiceIntent.setAction(Constants.ACTION.STOP_PROCESS_FOR_NEW);
        } else {
            mServiceIntent.setAction(Constants.ACTION.STOP_PROCESS);
        }
        context.stopService(mServiceIntent);
    }